package com.zkthink.ceres.applet.authority.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zkthink.base.R;
import com.zkthink.ceres.applet.authority.domain.entity.AppletMember;
import com.zkthink.ceres.applet.user.vo.CustomerVo;
import com.zkthink.clh.order.dto.CouponsPageDTO;
import com.zkthink.clh.order.entity.AppletVip;
import com.zkthink.clh.order.entity.ChlCoupons;

import java.util.List;

/**

@Author cmz
@Date 2024-04-29 16:39
*/
public interface AppletMemberService extends IService<AppletMember>{


    AppletMember findByAccount(String phone);

    R getBalance();

    List<CustomerVo> selectCustomerList();

    IPage<ChlCoupons> findCoupons(IPage page, CouponsPageDTO model);

    List<AppletVip> selectVip();

    /**
     * 购买vip
     */
    R buyVip(String vipId);

    /**
     * 购买消费金
     */
    R buyChlCoupons(String chlCouponsId);

}
